package ch3;

import java.util.Scanner;

public class Prize3 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入张浩同学的成绩：");
		double s = in.nextDouble();
		if (s > 100 || s < 0) {
			System.out.println("非法");
		} else if (s > 80) {
			System.out.println("优秀！");
		} else if (s >= 70) {
			System.out.println("中等");
		} else if (s >= 60) {
			System.out.println("及格");
		} else {
			System.out.println("差");
		}

	}

}
